package com.ruoyi.business.domain;

import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 候补订单对象 waitlist
 * 
 * @author ruoyi
 * @date 2025-03-24
 */
public class Waitlist extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 候补订单号 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 用户ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "用户ID")
    private Long memberId;

    /** 火车编号 */
    @Excel(name = "火车编号")
    private String trainCode;

    /** 出发日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出发日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 出发站 */
    @Excel(name = "出发站")
    private String start;

    /** 到达站 */
    @Excel(name = "到达站")
    private String end;

    /** 座位类型 */
    @Excel(name = "座位类型")
    private String seatType;

    /** 候补人信息 */
    @Excel(name = "候补人信息")
    private String quantity;

    /** 出发时间 */
    @JsonFormat(pattern = "hh:mm:ss")
    @Excel(name = "出发时间", width = 30, dateFormat = "hh:mm:ss")
    private Time startTime;

    /** 到达时间 */
    @JsonFormat(pattern = "hh:mm:ss")
    @Excel(name = "到达时间", width = 30, dateFormat = "hh:mm:ss")
    private Time endTime;

    /** 序号 */
    @Excel(name = "序号")
    private Long subscript;

    /** 是否接受新增列车（接受1，不接受0） */
    @Excel(name = "是否接受新增列车", readConverterExp = "接=受1，不接受0")
    private Long accept;

    /** 截止兑现时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止兑现时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date Deadline;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 截止支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timeOut;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setTrainCode(String trainCode) 
    {
        this.trainCode = trainCode;
    }

    public String getTrainCode() 
    {
        return trainCode;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setStart(String start) 
    {
        this.start = start;
    }

    public String getStart() 
    {
        return start;
    }
    public void setEnd(String end) 
    {
        this.end = end;
    }

    public String getEnd() 
    {
        return end;
    }
    public void setSeatType(String seatType) 
    {
        this.seatType = seatType;
    }

    public String getSeatType() 
    {
        return seatType;
    }
    public void setQuantity(String quantity) 
    {
        this.quantity = quantity;
    }

    public String getQuantity() 
    {
        return quantity;
    }
    public void setStartTime(Time startTime)
    {
        this.startTime = startTime;
    }

    public Time getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Time endTime)
    {
        this.endTime = endTime;
    }

    public Time getEndTime()
    {
        return endTime;
    }
    public void setSubscript(Long subscript) 
    {
        this.subscript = subscript;
    }

    public Long getSubscript() 
    {
        return subscript;
    }
    public void setAccept(Long accept) 
    {
        this.accept = accept;
    }

    public Long getAccept() 
    {
        return accept;
    }
    public void setDeadline(Date Deadline) 
    {
        this.Deadline = Deadline;
    }

    public Date getDeadline() 
    {
        return Deadline;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTimeOut(Date timeOut) 
    {
        this.timeOut = timeOut;
    }

    public Date getTimeOut() 
    {
        return timeOut;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("trainCode", getTrainCode())
            .append("date", getDate())
            .append("start", getStart())
            .append("end", getEnd())
            .append("seatType", getSeatType())
            .append("quantity", getQuantity())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("subscript", getSubscript())
            .append("accept", getAccept())
            .append("Deadline", getDeadline())
            .append("status", getStatus())
            .append("timeOut", getTimeOut())
            .toString();
    }
}
